<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<link href="assets/css/bootstrap-select.css" rel="stylesheet"/>
<link href="assets/css/front/listCommonStyle.css" rel="stylesheet"/>
<link href="assets/css/modify.css" rel="stylesheet"/>
<script src="assets/js/select2/select2.js"></script>
<!--<script src="assets/js/YMDClass.js" charset="utf-8"></script>-->
<style>
    th, td {
        border-right: 1px solid #ccc !important;
    }

    td:nth-last-child(1) {
        border-right: none !important;
    }

    th:nth-last-child(1) {
        border-right: none !important;
    }

    #tssClassesListtableScrollable tr:nth-child(odd) {
        background-color: #fff !important;
    }

    #tssClassesListtableScrollable tr:nth-child(even) {
        background-color: #F2F6F9 !important;
    }

    #tssClassesListtableScrollable .classTd {
        width: 80px !important;
    }

    #tssClassesListtableScrollable td {
        padding: 0px !important;
    }

    #tssClassesListtableScrollable .classTh {
        width: 80px;
    }

    #tssClassesListtableScrollable label {
        margin: 0px !important;
    }

    #tssClassesListtableScrollable tr {
        height: 120px;
        padding: 0px !important;
    }

    #tssClassesListtableScrollable tr:nth-child(1) {
        height: 40px !important;
    }

    #tssClassesListtableScrollable .classTd:nth-child(3n) {
        background-color: #6ACCFF;
    }

    #tssClassesListtableScrollable .classTd:nth-child(3n-1) {
        background-color: #F888BD;
    }

    #tssClassesListtableScrollable .classTd:nth-child(3n-2) {
        background-color: #84DAC3;
    }
    p {
        color: #fff;
        width: 80px !important;
        margin-bottom: 0px !important;
        white-space: normal !important;
        line-height: 20px !important;
    }

    .remarkDiv{
        position: absolute;
        top:55px;
        right:-140px;
        width: 160px;
        min-height:100px;
        display: block;
        background-color: #fff;
        white-space: normal;
        font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 1.42857143;
        text-decoration: none;
        text-shadow: none;
        text-transform: none;
        letter-spacing: normal;
        word-break: normal;
        word-spacing: normal;
        word-wrap: normal;
        white-space: normal;
        background-color: #fff;
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
        border: 1px solid #ccc;
        border: 1px solid rgba(0,0,0,.2);
        border-radius: 6px;
        -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
        box-shadow: 0 5px 10px rgba(0,0,0,.2);
        line-break: auto;
        overflow: hidden;
    }

    .bootbox-expand-button {
        width: 19px;
        height: 19px;
        border: none;
        cursor: pointer;
        -webkit-appearance: none;
        float: right;
        top: 10px;
        right: 10px;
        position: relative;
        background: #E9F5FF url("assets/img/nav-img/icon_window.png") no-repeat 0 0;
    }
</style>
<input type="hidden" id="cg">
<div class="row margin-left-10">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="widget flat margin-top-0" style="margin: -10px 0 0px 0!important;">
            <div class="widget-header bordered-sky theme-bordered nopadding">
                <div class="widget-buttons widget-label nomargin-bottom">
                    <label class="businessBtns">
                        <ol class="breadcrumb" style="margin: 0;">
                            <li style="color: #809fa6;">班级管理</li>
                            <li class="active" style="color: #23a8f5;">园所课表</li>
                        </ol>
                    </label>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div style="margin-bottom: 50px;clear: both;">
            <div class="widget flat margin-top-0" style="margin: 3px 0 0px 0!important;float: left">
                <div class="widget-header bordered-sky theme-bordered nopadding">
                    <div class="widget-buttons widget-label nomargin-bottom">
                        <label class="businessBtns">
                            <a type="btn" class="btn basicInfoBtnt" href="javascript:toView('viewTssClassScheduleController/viewTssClassSchedule.do?type=1',true,'POST',{pageSize:10})"
                               style="background-color: #23a8f5;border: none;border-top-left-radius: 4px!important;border-bottom-left-radius: 4px!important;width: 120px;color: #fff;margin-right: 0!important;box-shadow:0px 0px 10px rgba(122,161,184,0.3);">
                                亲子课表
                            </a><a type="btn" class="btn basicInfoBtnt" href="javascript:toView('viewTssClassScheduleController/viewTssClassSchedule.do?type=2',true,'POST',{pageSize:10})"
                                   style="background-color: #fff;border: none;border-top-right-radius: 4px!important;border-bottom-right-radius: 4px!important;width: 120px;color: #4a647d;box-shadow:0px 0px 10px rgba(122,161,184,0.3);">过渡课表
                        </a>
                        </label>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="widget flat searchCriteria" style="margin: 0;">
            <div class="widget-header bordered-sky theme-bordered nopadding">
                <div class="widget-buttons " style="margin-bottom: 10px !important;">
                    <label class="businessBtns ">
                        <label>
                            <label style="width: 70px">课程日期：</label>
                        </label>
                        <label class="margin-right-20">
                            <input type="text"
                                   style="height: 30px;width:130px;border-radius: 4px!important;border: 1px solid #c6d5d8;padding-left:10px;"
                                   class=" date-picker tssClassScheduleInput" placeholder="请选择搜索日期"
                                   onfocus="WdatePicker({doubleCalendar:true,dateFmt:'yyyy-MM-dd'})">
                        </label>
                        <label>
                            <a style="border-radius: 0px;border: none;background: #ffab01 !important;"
                               class="btn btn-warning shiny" onclick="searchTime()"><i
                                    class="fa fa-search"></i>搜索
                            </a>
                        </label>
                        <label>
                            <a style="border-radius: 0px;border: none;background: #23a8f5 !important;margin-right: 20px !important;"
                               class="btn btn-blue shiny" id="last-week">前一周
                            </a>
                        </label>
                        <label>
                            <a style="border-radius: 0px;border: none;background: #23a8f5 !important;margin-right: 20px !important;"
                               class="btn btn-blue shiny" id="next-week">后一周
                            </a>
                        </label>
                    </label>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"
             style="height: 40px;background-color: #e5f4ff;line-height: 40px">
            <div class="text-align-center" style="font-size: 15px;position: relative">
                <strong class="margin-right-10">课程表</strong><strong id="tssClassScheduleTime"
                                                                    class="margin-right-10"></strong><strong
                    id="tssClassScheduleDay"></strong>

                <span class="bootbox-expand-button" onclick="showBig()"></span>
            </div>
        </div>
        <div class="widget flat radius-bordered" style="margin-top: 0;box-shadow:0px 0px 10px rgba(122,161,184,0.3);">
            <div class="widget-body no-padding">
                <div class="table-scrollable" style="border: none;">
                    <!-- 数据表列信息列表 -->
                    <table class="table table-hover  dataTable newtable">
                        <thead>
                        <tr style="background-color: #F2F6F9;!important;height: 40px;!important;">
                            <th title="星期一">星期一</th>
                            <th title="星期二">星期二</th>
                            <th title="星期三">星期三</th>
                            <th title="星期四">星期四</th>
                            <th title="星期五">星期五</th>
                            <th title="星期六">星期六</th>
                            <th title="星期日">星期日</th>
                        </tr>
                        </thead>
                        <tbody id="tssClassesListtableScrollable">
                        <tr>
                            <td>
                                <label class="classTh">class1</label><label class="classTh">class2</label><label
                                    class="classTh">class3</label>
                            </td>
                            <td>
                                <label class="classTh">class1</label><label class="classTh">class2</label><label
                                    class="classTh">class3</label>
                            </td>
                            <td>
                                <label class="classTh">class1</label><label class="classTh">class2</label><label
                                    class="classTh">class3</label>
                            </td>
                            <td>
                                <label class="classTh">class1</label><label class="classTh">class2</label><label
                                    class="classTh">class3</label>
                            </td>
                            <td>
                                <label class="classTh">class1</label><label class="classTh">class2</label><label
                                    class="classTh">class3</label>
                            </td>
                            <td>
                                <label class="classTh">class1</label><label class="classTh">class2</label><label
                                    class="classTh">class3</label>
                            </td>
                            <td>
                                <label class="classTh">class1</label><label class="classTh">class2</label><label
                                    class="classTh">class3</label>
                            </td>
                        </tr>
                        <tr>
                            <td style="position: relative">
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                                <i class="fa fa-file-text-o" title="备注" style="position: absolute;right: 1px;top: 1px;color: #4a647d" onclick="iconchangeRemark(this)" value="0"></i>
                                <div class="remarkDiv hidden">
                                    <textarea  name="" id="" rows="10" style="border: none;width: 160px;padding: 10px;" placeholder="备注内容"></textarea>
                                    <div class="row text-align-center" style="margin-left: 0px!important;padding-bottom: 10px!important;">
                                        <label>
                                            <a style="width: 60px;height: 30px;" type="submit" class="btn btn-blue" >保存
                                            </a>
                                        </label>
                                        <label>
                                            <a style="width: 60px;height: 30px;" type="button" class="btn btn-blue" >取消
                                            </a>
                                        </label>
                                    </div>
                                </div>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">

                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>
                                    <label class=" classTd">
                                        <p>9:00</p>
                                        <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                        <p>(15人)</p>
                                        <p>2-3岁</p>
                                        <p>花花老师</p>
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                        <p>9:00</p>
                                        <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                        <p>(15人)</p>
                                        <p>2-3岁</p>
                                        <p>花花老师</p>
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                        <p>9:00</p>
                                        <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                        <p>(15人)</p>
                                        <p>2-3岁</p>
                                        <p>花花老师</p>
                                    </label><label class=" classTd">

                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>
                                    <label class=" classTd">

                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">

                                    </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                        <p>9:00</p>
                                        <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                        <p>(15人)</p>
                                        <p>2-3岁</p>
                                        <p>花花老师</p>
                                    </label><label class=" classTd">
                                </label><label class=" classTd">

                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                        <p>9:00</p>
                                        <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                        <p>(15人)</p>
                                        <p>2-3岁</p>
                                        <p>花花老师</p>
                                    </label><label class=" classTd">
                                </label><label class=" classTd">

                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                        <p>9:00</p>
                                        <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                        <p>(15人)</p>
                                        <p>2-3岁</p>
                                        <p>花花老师</p>
                                    </label><label class=" classTd">

                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                        </tr>
                        <#list page_bean.list as data>
                        </#list>
                        <tr class="text-align-center" style="height: 40px;">
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"><strong style="font-size: 15px">教室清洁消毒</strong></td>
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"></td>
                        </tr>
                        <tr>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">

                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>
                                    <label class=" classTd">

                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">

                                    </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                        <p>9:00</p>
                                        <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                        <p>(15人)</p>
                                        <p>2-3岁</p>
                                        <p>花花老师</p>
                                    </label><label class=" classTd">
                                </label><label class=" classTd">

                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                        <p>9:00</p>
                                        <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                        <p>(15人)</p>
                                        <p>2-3岁</p>
                                        <p>花花老师</p>
                                    </label><label class=" classTd">
                                </label><label class=" classTd">

                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                        <p>9:00</p>
                                        <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                        <p>(15人)</p>
                                        <p>2-3岁</p>
                                        <p>花花老师</p>
                                    </label><label class=" classTd">

                                </label><label class=" classTd">
                                    <p>9:00</p>
                                    <p style="padding-right: 5px;padding-left: 5px">萌宝口才秀口才修</p>
                                    <p>(15人)</p>
                                    <p>2-3岁</p>
                                    <p>花花老师</p>
                                </label>
                                </label>
                            </td>
                            <td>
                                <label>
                                    <label class=" classTd">
                                    </label><label class=" classTd">
                                </label><label class=" classTd">
                                </label>
                                </label>
                            </td>
                        </tr>
                        <tr class="text-align-center" style="height: 40px;">
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"></td>
                            <td style="border-right: none!important;"></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                ${pagingBar}
            </div>
        </div>
    </div>

    <!-- 数据表列信息列表 -->
    <!--<#list classScheduleMapList as data>-->
    <!--<table style="float:left;width: 200px">-->
    <!--<tr>-->
    <!--<th title="属性名">${data.weekDay}</th>-->
    <!--</tr>-->

    <!--<#list data["roomInfoList"] as cl>-->
    <!--<tr>-->
    <!--<th>-->
    <!--<table style="float:left;width: 150px">-->
    <!--<tr>-->
    <!--<th type="button" class="btn btn-default ">${cl.roomName}</th>-->
    <!--</tr>-->

    <!--<#list cl["classInfoList"] as cI>-->
    <!--<tr>-->
    <!--<th style="height: 150px; padding: 10px">${cI.startTime}-->
    <!--${cI.coursName}-->
    <!--/${cI.attendCount}-->
    <!--${cI.trialAge}-->
    <!--${cI.realName}-->
    <!--</th>-->
    <!--</tr>-->
    <!--</#list>-->

    <!--</table>-->
    <!--</th>-->
    <!--</tr>-->
    <!--</#list>-->
    <!--</tr>-->
    <!--</table>-->

    <!--</#list>-->
</div>
<script>
    $(".selectpicker").select2();

    //    上一周 下一周

    //    日期搜索
    function searchTime() {
        var dateVal = new Date($(".tssClassScheduleInput").val());
        if (dateVal) {
            week(dateVal);
        } else {
            alert("请选择搜索日期")
        }
    }


    //    获取搜索日期当前一周日期
    function week(dateVal) {
        var currentFirstDate;
        var formatDate = function (date) {
            var obj = {};
            var year = date.getFullYear();
            var month = (date.getMonth() + 1);
            var day = date.getDate();
            var week = ['0', '1', '2', '3', '4', '5', '6'][date.getDay()];
            var key = year + '-' + month + '-' + day;
            var value = week;
            obj.time = key;
            obj.week = value;
            return obj;
        };
        var addDate = function (date, n) {
            date.setDate(date.getDate() + n);
            return date;
        };
        var setDate = function (date) {
            var dateValArr = [];
            var week = date.getDay() - 1;
            date = addDate(date, week * -1);
            currentFirstDate = new Date(date);
            for (var i = 0; i < 7; i++) {
                dateValArr.push(formatDate(i == 0 ? date : addDate(date, 1)))
            }
            console.log(dateValArr);
            var html = '(' + dateValArr[0].time.split("-")[1] + '.' + dateValArr[0].time.split("-")[2] + '-' + dateValArr[6].time.split("-")[1] + '.' + dateValArr[6].time.split("-")[2] + ')';
            $("#tssClassScheduleDay").empty().append(html)
            var timeHtml = dateValArr[0].time.split("-")[0] + '年' + dateValArr[0].time.split("-")[1] + '月';
            $("#tssClassScheduleTime").empty().append(timeHtml)
        };
        document.getElementById('last-week').onclick = function () {
            setDate(addDate(currentFirstDate, -7));

        };
        document.getElementById('next-week').onclick = function () {
            setDate(addDate(currentFirstDate, 7));
        };
        setDate(dateVal);
    }

    setTimeout(function () {
        $(".classTd").each(function () {
            var size = $(this).find("p").size();
            if (size == 0) {
                $(this).css("background-color", "transparent");
            }
        })

    }, 100)

//    备注
    function iconchangeRemark(that) {
        if($(that).attr("value")==0) {
            $(that).attr("value","1");
            $(that).next().removeClass("hidden");

        }else{
            $(that).attr("value","0");
            $(that).next().addClass("hidden");
        }
    }

//    全屏
    function showBig() {
        ajaxRequest("viewTssClassScheduleController/viewTssClassScheduleKissBaby.do",{}, function (html) {
            getTopWin().bootbox.dialog({
                message: html,
                title: "亲子课表",
                className: 'myDialog viewTssClassScheduleKissBabyDialog',
            });
            $(".modal-header").find(".bootbox-close-button").removeClass("close");
            $(".modal-header").find(".bootbox-close-button").html("");
        }, function () {
            ajaxError("加载页面失败!")
        }, "get", "html")
    }


</script>